package qqopenapi_v3

// http://wiki.open.qq.com/wiki/%E5%85%AC%E5%85%B1%E8%BF%94%E5%9B%9E%E7%A0%81%E8%AF%B4%E6%98%8E
var (
  error_code = map[int]string{
    1: "请求参数错误",
    2: "用户没有开通对应的平台",
    1000: "非法操作",
    1001: "服务器繁忙",
    1002: "用户没有登录态",
    1003: "账户被冻结",
    1004: "账户余额不足",
    1005: "用户没有开通腾讯朋友",
    1006: "用户没有开通QQ空间",
    1100: "CDKEY不存在",
    1101: "用户和CDKEY不存在绑定关系或礼品赠送完毕",
    1102: "参加活动受限",
    1300: "多区选服页面登录验证失败",
    -1: "请求参数无效",
    -2: "请求中的appid不存在",
    -3: "无API访问权限",
    -4: "IP没有权限",
    -5: "签名参数sig校验失败",
    -6: "访问频率超限",
    -7: "协议不合法",
    -8: "请求受限",
    -9: "API不存在",
    -12: "非调试者QQ号对应的OpenID",
    -20: "应用调用的OpenAPI未经用户授权",
    -21: "access_token已废除",
    -22: "openid不合法",
    -23: "openkey不合法",
    -24: "openid或openkey验证失败",
    -58: "-58, OpenAPI系统容错问题",
    -60: "-60, OpenAPI系统容错问题",
    -65: "-65, OpenAPI系统容错问题",
    -71: "openid和access_token不匹配, 或openid和openkey不匹配",
  }
)

func GetErrString(code int) string {
  return error_code[code]
}